package com.study.SellTicket;

public class TicketDemo {
    public static void main(String[] args) {
        Ticket ticket = new Ticket();
        ticket.setTicketNum(100);
        SellWindow sell1 = new SellWindow("线程1",ticket);
        SellWindow sell2 = new SellWindow("线程2",ticket);
        SellWindow sell3 = new SellWindow("线程3",ticket);
        SellWindow sell4 = new SellWindow("线程4",ticket);
        new Thread(sell1).start();
        new Thread(sell2).start();
        new Thread(sell3).start();
        new Thread(sell4).start();
    }
}
